package com.letoken.platform.repo.app.req.ex;

/**
 * @author wyl
 * @Description TODO
 * @date 2023/6/7 16:50
 * @Version 1.0
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wyl
 * @date 2023/6/6 18:49
 * @Version 1.0
 */
@Data
@ApiModel(value = "异常信息上报请求对象", description = "异常信息上报请求对象")
public class ExReportReq {

    @NotBlank(message = "消息不能为空！")
    @ApiModelProperty("消息")
    private String message;

    @NotNull(message = "异常类型不能为空！")
    @Range(min = 1, max = 2, message = "异常类型异常！")
    @ApiModelProperty(value = "1：app异常信息  2：web异常信息", example = "1")
    private Integer type;

    @ApiModelProperty("堆栈跟踪")
    private String stack;

    @ApiModelProperty("用户代理")
    private String userAgent;

    @ApiModelProperty("错误页面")
    private String url;

    @ApiModelProperty("指纹")
    private String murmur;

    @ApiModelProperty("手机品牌")
    private String phoneBrand;

}
